<script type="text/JavaScript" src="<{$xoops_url}>/modules/<{$xoops_dirname}>/libclasses/curvyCorners/rounded_corners_lite.inc.js"></script>

<script type="text/JavaScript">

  window.onload = function()
  {
      /*
      The new 'validTags' setting is optional and allows
      you to specify other HTML elements that curvyCorners
      can attempt to round.

      The value is comma separated list of html elements
      in lowercase.

      validTags: ["div", "form"]

      The above example would enable curvyCorners on FORM elements.
      */
      settings = {
          tl: { radius: 10 },
          tr: { radius: 10 },
          bl: { radius: 10 },
          br: { radius: 10 },
          antiAlias: true,
          autoPad: true
      }

var divHeader = document.getElementById("ks_header");

var cornersObj = new curvyCorners(settings, divHeader);
cornersObj.applyCornersToAll();
</script>


	<script type="text/javascript" src="<{$xoops_url}>/modules/<{$xoops_dirname}>/libclasses/ImageManager/assets/dialog.js"></script>
	<script type="text/javascript" src="<{$xoops_url}>/modules/<{$xoops_dirname}>/libclasses/ImageManager/IMEStandalone.js"></script>
	<script type="text/javascript">
    //<![CDATA[

		//Create a new Imanager Manager, needs the directory where the manager is
		//and which language translation to use.
		var manager = new ImageManager('<{$xoops_url}>/modules/<{$xoops_dirname}>/libclasses/ImageManager','en');
		
		//Image Manager wrapper. Simply calls the ImageManager
		ImageSelector = 
		{
			//This is called when the user has selected a file
			//and clicked OK, see popManager in IMEStandalone to 
			//see the parameters returned.
			update : function(params)
			{
				if(this.field && this.field.value != null)
				{
					this.field.value = params.f_file; //params.f_url
				}
			},
			//open the Image Manager, updates the textfield
			//value when user has selected a file.
			select: function(textfieldID)
			{
				this.field = document.getElementById(textfieldID);
				manager.popManager(this);	
			}
		};	

    //]]>
    </script>

<link rel="stylesheet" type="text/css" href="<{$xoops_url}>/modules/<{$xoops_dirname}>/kshop.css" />

<form name="entryform" method="post" action="products.php">
<input type="hidden" name="mode" value="<{$mode}>">
<input type="hidden" name="id" value="<{$prodid}>">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td id="admprodbox1">
	<!--Column 1 -->
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><{$smarty.const.KS_CATEGORY}></td>
  </tr>
  <tr>
    <td>
<select name="categories[]" multiple size="10">
<{foreach item=cat from=$cats}>
<option value="<{$cat.id}>" <{$cat.sel}>><{$cat.name}></option>
<{/foreach}>
</select>
</td>
  </tr>
  <tr>
    <td><{$smarty.const.KS_SELLALLAVAIL}></td>
  </tr>
  <tr>
    <td>
<select name="p_options[]" multiple size="10">
<{foreach item=option from=$options}>
<option value="<{$option.id}>" <{$option.sel}>><{$option.name}></option>
<{/foreach}>
</select>
	</td>
  </tr>
    <tr>
    <td><{$smarty.const.KS_SUBTABS_PRODBRANDS}></td>
  </tr>
    <tr>
    <td>
<select name="brands">
<{foreach item=brand from=$brands}>
<option value="<{$brand.id}>" <{$brand.sel}>><{$brand.name}></option>
<{/foreach}>
</select>
	</td>
  </tr>
</table>

	</td>
	<!--Column 2 -->
    <td>
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><{$smarty.const.KS_PRODNUM}></td>
        <td><input type="text" name="p_item_nr" size=25 maxlength="12" value="<{$p_item_nr}>"></td>
      </tr>
      <tr>
        <td><{$smarty.const.KS_PRODNAME}></td>
        <td><input type="text" name="p_name" size=35 maxlength="36" value="<{$p_name}>"></td>
      </tr>
      <tr>
        <td><{$smarty.const.KS_SHORTTEXT}></td>
        <td><{$shorttext}></td>
      </tr>
      <tr>
        <td><{$smarty.const.KS_LONGTEXT}></td>
        <td><{$longtext}></td>
      </tr>
      <tr>
        <td><{$smarty.const.KS_PRICE}></td>
        <td><input type="text" name="p_price" size="10" maxlength="15" value="<{$p_price}>"> <{$currency}></td>
      </tr>
      <tr>
        <td><{$smarty.const.KS_SPECIALPRICE}></td>
        <td><input type="text" name="p_sp_price" size="10" maxlength="15" value="<{$p_sp_price}>"> <{$currency}></td>
      </tr>
      <tr>
        <td><{$smarty.const.KS_ACTIVE}></td>
        <td><input type="checkbox" name="p_show_me"<{$p_show_mecheck}>></td>
      </tr>
      <tr>
        <td><{$smarty.const.KS_SHOWIMAGE}></td>
        <td><input type="checkbox" name="p_show_img"<{$p_show_imgcheck}>></td>
      </tr>
      <tr>
        <td><{$smarty.const.KS_SPECIAL}></td>
        <td><input type="checkbox" name="p_has_special"<{$p_has_specialcheck}>></td>
      </tr>
      <tr>
        <td><{$smarty.const.KS_STYLE}></td>
        <td><input type="checkbox" name="p_has_style"<{$p_has_stylecheck}>></td>
      </tr>
	  <tr>
        <td>&nbsp;</td>
        <td><input type="submit" value="<{$smarty.const.KS_SUBMIT}>"></td>
      </tr>
    </table>
	</td>
	<!--Column 3 -->
    <td id="admprodbox3">
	<{$smarty.const.KS_IMGMANGR}>
		<p><{$smarty.const.KS_PLSIMAGE}><br />
		  <input type="text" id="file" class="selectFile" name="p_image" value="<{$p_image}>" />
		  <input type="button" name="select" value=" File " onclick="ImageSelector.select('file');"/>
		</p>
	  <p>
	  <img src="<{$xoops_url}>/modules/<{$xoops_dirname}>/images/products<{$p_thumb}>">       
	  </p>
	
	</td>
  </tr>
</table>
</form>
